<?php

function somente_numeros($val){
	
	if($val == null){
		return null;
	}
	
	$limpo = preg_replace("#\D#", "", $val);
	
	return $limpo;	
	
}


?>

